﻿namespace GoodAdmin.System;

/// <summary>
/// 字典类型表
/// </summary>
[SugarTable("sys_dict_type",tableDescription:"字典类型表")]
public class SysDictType: BaseSystemEntityHasPid
{
    /// <summary>
    /// 名称
    /// </summary>
    [SugarColumn(ColumnDescription = "名称", Length = 50)]
    public virtual string Name { get; set; }

    /// <summary>
    /// 编码
    /// </summary>
    [SugarColumn(ColumnDescription = "编码", Length = 50)]
    public virtual string Code { get; set; }

    /// <summary>
    /// 描述
    /// </summary>
    [SugarColumn(ColumnDescription = "描述", Length = 200,IsNullable =true)]
    public string Description { get; set; }
    /// <summary>
    /// 排序码
    /// </summary>
    [SugarColumn(ColumnDescription = "排序码",  IsNullable = true)]
    public int? SortCode { get; set; }

    /// <summary>
    /// 子节点
    /// </summary>
    [SugarColumn(IsIgnore =true)]
    public List<SysDictType> Children { get; set; }
}